/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
  path: '/views/systemConfiguration/setSystem',
  component: Layout,
  //当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
  redirect: 'noRedirect',
  // alwaysShow: true, //一直显示根路由
  name: 'systemConfiguration',
  meta: {
    title: '系统设置',
    icon: 'adjust',
    roles: ['admin', 'user']
  }, //你可以在根路由设置权限，这样它下面所有的子路由都继承了这个权限
  // children: [{
  //   path: '/views/systemConfiguration/setSystem',
  //   component: () => import('@/views/systemConfiguration/setSystem/index'),
  //   //当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
  //   redirect: 'noRedirect',
  //   // alwaysShow: true, //一直显示根路由
  //   meta: {
  //     title: '系统设置',
  //     roles: ['admin', 'user']
  //   }, //你可以在根路由设置权限，这样它下面所有的子路由都继承了这个权限
  children: [{
      path: '/views/systemConfiguration/setSystem/setSystem',
      component: () => import('@/views/systemConfiguration/setSystem/setSystem'), // 系统配置
      name: 'setSystem',
      meta: {
        title: '系统配置',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/systemConfiguration/authoritySet/authority',
      component: () => import('@/views/systemConfiguration/authoritySet/authority'), // 权限设置
      name: 'authority',
      meta: {
        title: '权限设置',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/ManagementZT/ManagementZT',
      component: () => import('@/views/ManagementZT/ManagementZT'), // 账套管理
      name: 'ManagementZT',
      meta: {
        title: '账套管理',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/billsConfig',
      component: () => import('@/views/billsConfig/index'), // 单据编号规则配置
      name: 'billsConfig',
      meta: {
        title: '单据编号规则配置',
        roles: ['admin', 'user']
      }
    }, 
    {
      path: '/views/business',
      component: () => import('@/views/business/SystemConfiguration'), // 开账操作
      name: 'SystemConfiguration',
      meta: {
        title: '开账操作',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/pricePriority',
      component: () => import('@/views/pricePriority/index'), // 价格优先级
      name: 'pricePriority',
      meta: {
        title: '价格优先级',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/ManagementZT/redactMessage',
      component: () => import('@/views/ManagementZT/redactMessage/index'), // 账套信息
      name: 'redactMessage',
      meta: {
        title: '账套信息',
        roles: ['admin', 'user']
      },
      hidden: true,
    },

    {
      path: '/views/systemConfiguration/systemReset',
      component: () => import('@/views/systemConfiguration/systemReset/index.vue'),
      name: 'systemReset',
      meta: {
        title: '系统重置',
        roles: ['admin', 'user']
      }
    },
    {
      path: '/views/systemConfiguration/index',
      component: () => import('@/views/systemConfiguration/index.vue'),
      name: 'systemResetIndex',
      meta: {
        title: '操作日志',
        roles: ['admin', 'user']
      }
    },
  ]
  // },]
}
export default systemRouter
